package com.jlcindia;

public class OOPTest21 {

	public static void main(String[] args) {
		Student1 st=new Student1();
		System.out.println(st.getage());
		System.out.println(st.name);
	}
}
class Person1{
	int age;
	int getage(){
		return this.age;
	}
	Person1(){
		System.out.println("\n==Person()def cons==");
		this.age=18;
	}
}
class User1 extends Person1{
	String uname;
	User1(){
		System.out.println("==User()def cons==");
	}
}
class Student1 extends User1{
	String name;
	Student1(){
		super();
		System.out.println("**student()def cons**:"+age+"\t"+name+"\t"+uname);
	}
}